//
//  YAYISkillModel.m
//  YAYIDoctor
//
//  Created by Veer on 16/5/13.
//
//

#import "YAYISkillModel.h"

@implementation YAYISkillModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
}

- (void)setName:(NSString *)name
{
    _name = name;
    
    _name = name;
    if (name) {
        _pinyin = name.pinyin;
    }
}

//实现NSCopying协议的方法，来使此类具有copy功能
//-(instancetype)copyWithZone:(NSZone *)zone
//{
//    YAYISkillModel *newItem = [[YAYIMyPatientItem allocWithZone:zone] init];
//    
//    newItem.isLocalImage = self.isSelected;
//    newItem.clientid = self.clientid;
//    newItem.clientname = self.clientname;
//    newItem.avatar = self.avatar;
//    newItem.pinyin = self.pinyin;
//    newItem.dcid = self.dcid;
//    
//    return newItem;
//}

@end
